﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace ManagerClinic.Controls
{
    public partial class ucControlAddUpdateDeletePrintClose : DevExpress.XtraEditors.XtraUserControl
    {
        public ucControlAddUpdateDeletePrintClose()
        {
            InitializeComponent();
        }

        public event EventHandler RaiseEventAdd = null;
        public event EventHandler RaiseEventUpdate = null;
        public event EventHandler RaiseEventDelete = null;
        public event EventHandler RaiseEventPrint = null;
        public event EventHandler RaiseEventClose = null;

        private void btnAdd_Click(object sender, EventArgs e)
        {
            if (RaiseEventAdd != null) RaiseEventAdd(sender, e);
        }

        private void btnUpdate_Click(object sender, EventArgs e)
        {
            if (RaiseEventUpdate != null) RaiseEventUpdate(sender, e);
        }

        private void btnDelete_Click(object sender, EventArgs e)
        {
            if (RaiseEventDelete!= null) RaiseEventDelete(sender, e);
        }

        private void btnPrint_Click(object sender, EventArgs e)
        {
            if (RaiseEventPrint != null) RaiseEventPrint(sender, e);
        }

        private void btnClose_Click(object sender, EventArgs e)
        {
            if (RaiseEventClose != null) RaiseEventClose(sender, e);
        }
    }
}
